package com.google.gwt.dom.client;

public class MyDOMImplIE8 extends DOMImplIE8 {
	@Override
	public Element createElement(Document doc, String tagName) {

		Element elem = super.createElement(doc, tagName);
		if (tagName.equalsIgnoreCase("canvas")) {
			elem = createExCanvas();
		}
		return elem;
	}

	private native Element createExCanvas()/*-{
		var el = $doc.createElement('canvas');
		el.setAttribute("width", 300);
		el.setAttribute("height", 150);
		el = $wnd.G_vmlCanvasManager.initElement(el);
		return el;
	}-*/;
}
